<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选择科室:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[keshi]" data-live-search="true">
				<option value="">请选择...</option>
                {foreach name="KeshiList" item="vo"}
                    <option value="{$vo.id}" {in name="key" value=""}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">科室介绍:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
            <input id="c-hospitalid" data-rule="required" class="form-control"  name="row[hospitalid]" type="hidden" value="{$hospitalid}">
        </div>
    </div>
    <div class="form-group">
    <label for="c-file" class="control-label col-xs-12 col-sm-2">关联附件:</label>
    <div class="col-xs-12 col-sm-8">
        <div class="input-group">
            <input id="c-file" data-rule="" class="form-control" size="50" name="row[file]" type="text" value="">
            <div class="input-group-addon no-border no-padding">
                <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-file" data-mimetype="*" data-multiple="true" data-preview-id="p-avatar"><i class="fa fa-upload"></i> 上传</button></span>
                <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-file" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
            </div>
            <span class="msg-box n-right" for="c-file"></span>
        </div>
        <ul class="row list-inline faupload-preview" id="p-file"></ul>
    </div>
</div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">权重:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-weigh" data-rule="required" class="form-control"  name="row[weigh]" type="text" value="1">-->
<!--            -->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
